package com.deram.ctin.serv.business.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@ApiModel(description = "经营异常")
public class BusinessAbnormal implements Serializable {

    @ApiModelProperty(value = "ID")
    private Long id;
    @ApiModelProperty(value = "列入经营异常原因")
    private String enrolCause;
    @ApiModelProperty(value = "列入时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enrolDate;
    @ApiModelProperty(value = "移出经营异常原因")
    private String removeCause;
    @ApiModelProperty(value = "移出时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date removeDate;
    @ApiModelProperty(value = "做出决定机关")
    private String authority;
    @ApiModelProperty(value = "企业ID")
    private Long enterId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEnrolCause() {
        return enrolCause;
    }

    public void setEnrolCause(String enrolCause) {
        this.enrolCause = enrolCause == null ? null : enrolCause.trim();
    }

    public Date getEnrolDate() {
        return enrolDate;
    }

    public void setEnrolDate(Date enrolDate) {
        this.enrolDate = enrolDate;
    }

    public String getRemoveCause() {
        return removeCause;
    }

    public void setRemoveCause(String removeCause) {
        this.removeCause = removeCause == null ? null : removeCause.trim();
    }

    public Date getRemoveDate() {
        return removeDate;
    }

    public void setRemoveDate(Date removeDate) {
        this.removeDate = removeDate;
    }

    public String getAuthority() {
        return authority;
    }

    public void setAuthority(String authority) {
        this.authority = authority == null ? null : authority.trim();
    }

    public Long getEnterId() {
        return enterId;
    }

    public void setEnterId(Long enterId) {
        this.enterId = enterId;
    }

    @Override
    public String toString() {
        return "BusinessAbnormal{" +
                "id=" + id +
                ", enrolCause='" + enrolCause + '\'' +
                ", enrolDate=" + enrolDate +
                ", removeCause='" + removeCause + '\'' +
                ", removeDate=" + removeDate +
                ", authority='" + authority + '\'' +
                ", enterId=" + enterId +
                '}';
    }
}